package com.example.demo.model;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:dic/hello.properties")
@ConfigurationProperties(prefix = "hello")
public class Hello {
    //    @Value("${hello.first}")
    public String first;
    //    @Value("${hello.second}")
    public String second;

    public void setFirst(String first) {
        this.first = first;
    }
}
